array reversal problem in python

welcome to shbcf.ru